//
//  JZOperation.h
//  tf02
//
//  Created by F7686324 on 2017/1/7.
//  Copyright © 2017年 Jim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>

//#import "Interface_In.h"
#import "MBProgressHUD+MZAdd.h"
#import "NSObject+JZStoreValue.h"


#pragma mark - 网络请求类型
typedef NS_ENUM(NSInteger, JZRequestType) {
    PY_GET = 0,
    PY_POST = 1,
    PY_DELETE = 2,
    PY_PUT = 3,
};

@interface PYNetworking : NSObject

@property (nonatomic, strong, readonly) NSDictionary *parameters;
@property (nonatomic, copy, readonly) NSString *url;
@property (nonatomic, assign, readonly) JZRequestType requestType;

+ (instancetype)networkingWithURLString:(NSString *)URLString
                            parameters:(id)parameters
                           requestType:(JZRequestType)requestType
                               success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                               failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
+ (void)cancelAFHTTPRequest;

@end

